﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace 硬盘录像
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        NET_SDK_DEVICE_DISCOVERY_INFO[] m_devs;
        private void Form1_Load(object sender, EventArgs e)
        {
            Boolean b=DVR_SDK.NET_SDK_Init();
            b = DVR_SDK.NET_SDK_SetConnectTime(1500, 3);
            b = DVR_SDK.NET_SDK_SetReconnect(5000, true);
            m_devs = new NET_SDK_DEVICE_DISCOVERY_INFO[100];
//             m_devs[0].productType = new char[16];
//             m_devs[0].strIP = new char[16];
//             m_devs[0].strNetMask = new char[16];
//             m_devs[0].strGateWay = new char[16];
//             m_devs[0].byMac = new byte[8];
            int k=DVR_SDK.NET_SDK_DiscoverDevice(ref m_devs[0], 100, 4);
        }
    }
}
